﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wolfy.NetDisk.Core.Model
{
    public class Department : DeleteEntity
    {
        /// <summary>
        /// 部门名称
        /// </summary>
        public string Name { set; get; }
        /// <summary>
        /// 部门之间的级联关系
        /// </summary>
        public virtual Department ParentDepartment { set; get; }
        /// <summary>
        /// 一个部门有多个用户
        /// </summary>
        public virtual ICollection<User> Users { set; get; }
        /// <summary>
        /// 添加及修改时间
        /// </summary>
        public DateTime Dt { set; get; }
    }
}
